package a.f.d.a;

import a.f.o;

public class r
  implements v
{
  private static final double a = Math.sqrt(2.0D);
  private double b = 30.0D;
  private double c = 15.0D;
  private double d = 20.0D;
  private boolean e = true;
  private yc f = new yc();
  private bb g = new bb();
  private e h = new e();
  private ib i = new ib();
  private boolean j;
  public static int k;
  
  public void a(o paramo, ac paramac, bc parambc)
  {
    this.f.c(d());
    this.f.a(b());
    this.f.b(c());
    this.f.a(paramo, paramac, parambc);
    this.g.a(Math.max(d(), c()));
    this.g.a(paramo, paramac, parambc);
    this.h.a(paramo, paramac, parambc);
    this.i.a(paramo, paramac, parambc);
  }
  
  public void b(o paramo, ac paramac, bc parambc)
  {
    this.f.b(paramo, paramac, parambc);
    this.g.b(paramo, paramac, parambc);
    this.h.b(paramo, paramac, parambc);
    this.i.b(paramo, paramac, parambc);
  }
  
  public boolean a()
  {
    return this.e;
  }
  
  public void a(boolean paramBoolean)
  {
    this.e = paramBoolean;
  }
  
  private double c(o paramo, vb paramvb, bc parambc, a.c.e parame1, a.c.e parame2)
  {
    boolean bool = d.R;
    double d1 = 0.0D;
    ec localec;
    int m;
    label62:
    int n;
    a.c.e locale;
    a.c.d locald;
    z localz;
    oc localoc;
    label235:
    label236:
    label239:
    int i1;
    double d2;
    if (!bool) {
      if (parame1 != null)
      {
        localec = parambc.a(parame1);
        m = localec.d();
        if (!bool) {
          if (m != 8) {
            if (bool) {
              break label62;
            }
          }
        }
        n = m == 9 ? 1 : 0;
        if (((!bool) && (n != 0)) || ((bool) || ((m == 3) || (m == 2))))
        {
          if (bool) {
            break label281;
          }
          locale = localec.f();
          locald = localec.g();
          localz = parambc.a(locald).m();
          if ((localz != null) && (paramo.m(parame1) < paramo.m(locale)))
          {
            localoc = localz.i();
            if (!bool) {
              if (n != 0)
              {
                if (bool) {
                  break label236;
                }
                if (localoc.a() == 1) {
                  break label235;
                }
              }
            }
            if (!bool) {
              if (m == 3)
              {
                if (bool) {
                  break label236;
                }
                if (localoc.d() == 1) {
                  break label235;
                }
              }
            }
            if (!bool)
            {
              if (m != 2) {
                break label239;
              }
              if (bool) {
                break label236;
              }
            }
            i1 = localoc.c() == 1 ? 1 : 0;
            if (i1 != 0)
            {
              d2 = localz.j() / a;
              d1 += (n != 0 ? 2.0D * d2 : d2);
            }
          }
        }
      }
    }
    if (parame2 != null)
    {
      label281:
      localec = parambc.a(parame2);
      m = localec.d();
      if (!bool) {
        if (m != 8) {
          if (bool) {
            break label328;
          }
        }
      }
      label328:
      n = m == 9 ? 1 : 0;
      if (((!bool) && (n != 0)) || ((bool) || ((m == 3) || (m == 2))))
      {
        locale = localec.f();
        locald = localec.g();
        localz = parambc.a(locald).m();
        if (localz != null)
        {
          if (bool) {
            break label547;
          }
          if (paramo.m(parame2) > paramo.m(locale))
          {
            localoc = localz.i();
            if (!bool) {
              if (n != 0)
              {
                if (bool) {
                  break label502;
                }
                if (localoc.a() == 1) {
                  break label501;
                }
              }
            }
            if (!bool) {
              if (m == 3)
              {
                if (bool) {
                  break label502;
                }
                if (localoc.d() == 1) {
                  break label501;
                }
              }
            }
            if (!bool)
            {
              if (m != 2) {
                break label505;
              }
              if (bool) {
                break label502;
              }
            }
            label501:
            label502:
            label505:
            i1 = localoc.c() == 1 ? 1 : 0;
            if (i1 != 0)
            {
              d2 = localz.j() / a;
              d1 += (n != 0 ? 2.0D * d2 : d2);
            }
          }
        }
      }
    }
    label547:
    return d1;
  }
  
  public double a(o paramo, vb paramvb, bc parambc, a.c.e parame1, a.c.e parame2)
  {
    boolean bool = d.R;
    Object localObject1 = parame1 != null ? parambc.a(parame1) : null;
    Object localObject2 = parame2 != null ? parambc.a(parame2) : null;
    if ((bool) || ((parame1 == null) || ((bool) || (parame2 == null))))
    {
      if (!bool) {
        if ((parame1 != null) && (localObject1.d() == 15)) {
          return d();
        }
      }
      if (parame2 != null)
      {
        if (bool) {
          break label121;
        }
        if (localObject2.d() == 15) {
          return d();
        }
      }
    }
    label121:
    if (!bool) {
      if ((this.j) && ((bool) || ((parame1 != null) && (parame2 != null))))
      {
        Object localObject3 = localObject1;
        Object localObject4 = localObject2;
        localObject5 = localObject3.n();
        vc localvc = localObject4.n();
        if (((bool) || (localObject5 != null)) && ((bool) || (localvc != null)))
        {
          if (bool) {
            break label219;
          }
          if (((vc)localObject5).j() != localvc.j()) {
            return 0.0D;
          }
        }
      }
    }
    label219:
    double d1 = (bool) || (this.e) ? this.g.a(paramo, paramvb, parambc, parame1, parame2) : 0.0D;
    if (!bool)
    {
      if (d1 > d()) {
        d1 = 0.0D;
      }
      if (bool) {}
    }
    else if (d1 != 1.7976931348623157E+308D)
    {
      if (bool) {
        break label342;
      }
      if (d1 > 0.0D) {
        break label302;
      }
    }
    d1 = this.f.a(paramo, paramvb, parambc, parame1, parame2);
    label302:
    d1 = Math.max(d1, d1 + this.h.a(paramo, paramvb, parambc, parame1, parame2));
    label342:
    d1 = Math.max(d1, this.i.a(paramo, paramvb, parambc, parame1, parame2));
    Object localObject5 = sb.c(paramo);
    if (localObject5 != null) {
      d1 = Math.max(d1, ((sb)localObject5).a(paramo, parambc, parame1, parame2));
    }
    double d2 = c(paramo, paramvb, parambc, parame1, parame2);
    d1 = Math.max(d1, d1 + d2);
    return d1;
  }
  
  public double b()
  {
    return this.b;
  }
  
  public void a(double paramDouble)
  {
    this.b = paramDouble;
  }
  
  public double c()
  {
    return this.c;
  }
  
  public void b(double paramDouble)
  {
    this.c = paramDouble;
  }
  
  public double d()
  {
    return this.d;
  }
  
  public void c(double paramDouble)
  {
    this.d = paramDouble;
  }
  
  public void b(boolean paramBoolean)
  {
    this.j = paramBoolean;
  }
  
  public boolean e()
  {
    return this.j;
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.d.a.r
 * JD-Core Version:    0.7.0.1
 */